package com.example.news.entity;

import com.orm.SugarRecord;
import com.orm.dsl.Table;
import com.orm.dsl.Unique;

import java.io.Serializable;

/**
 * @author Admin
 */
//@Table(name = "history")
public class History extends SugarRecord implements Serializable {
    @Unique
    private String uniquekey;
    private String context;
    private String userName;
    public History() {

    }

    public History(String uniquekey, String context) {
        this.uniquekey = uniquekey;
        this.context = context;
    }
    public History(String uniquekey, String userName, String context) {
        this.uniquekey = uniquekey;
        this.userName = userName;
        this.context = context;
    }
    public String getUniquekey() {
        return uniquekey;
    }

    public void setUniquekey(String uniquekey) {
        this.uniquekey = uniquekey;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
    @Override
    public String toString() {
        return "History{" +
                "uniquekey='" + uniquekey + '\'' +
                ", context='" + context + '\'' +
                '}';
    }
}
